/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.constant;


/**
 * @ClassName 〈BusinessConstant>
 * @Description 商机模块相关常量
 * @Author 朱永波
 * @Date 2017/11/3 10:45
 */
public class BusinessConstant {

    /**
     * 商机列表查询部门数据的权限key
     */
    public static final String BUS_USER_SELECT_ORG_DATA_KEY = "SELECT_ORG_DATA";

    public static final String BUSINESS_ALLOT_REDIS_INC_KEY = "allot_bus:";

    public static final String BUSINESS_ALLOT_REDIS_USER_BUSINESS_KEY = "allot_bus_user:%s:%s";

    public static final String BUSINESS_GRAB_REDIS_INC_KEY = "sing_bus:";

    public static final String BUSINESS_GRAB_REDIS_USER_BUSINESS_KEY = "sing_bus_user:%s:%s";

    /* ============= 商机所在库相关常量 ============= */
    /**
     * 资源部门库
     */
    public static final Integer BUS_STORE_SOURCE = 1;
    /**
     * 个人库
     */
    public static final Integer BUS_STORE_EMP = 2;
    /**
     * 事业部库
     */
    public static final Integer BUS_STORE_DEPARTMENT = 3;
    /**
     * 无效库
     */
    public static final Integer BUS_STORE_INVALID = 4;

    /**
     * 部门库
     */
    public static final Integer BUS_STORE_ORG = 5;

    /**
     * 转介绍库
     */
    public static final Integer BUS_STORE_REFERRAl = 7;

    /**
     * 电销库
     */
    public static final Integer BUS_STORE_EP = 8;


    /**
     * 公海库
     */
    public static final Integer BUS_STORE_GH = 9;

    /**
     * 废弃库
     */
    public static final Integer BUS_STORE_FQ = 6;
    /* ============= 商机所在库相关常量 end ============= */


   /* ============= 商机状态相关常量 ============= */
    /**
     * 待分配
     */
    public static final String BUS_STATUS_NEW = "BUS_NEW";

    /**
     * 待自动分配
     */
    public static final String BUS_STATUS_AUTO_NEW = "BUS_AUTO_NEW";

    /**
     * 二次待分配
     */
    public static final String BUS_WAIT_ALLOT_AGAIN = "BUS_WAIT_ALLOT_AGAIN";




    /**
     * 部门待分配
     */
    public static final String BUS_STATUS_DEPT= "BUS_DEPT_WAIT";

    /**
     * 部门待抢单
     */
    public static final String BUS_STATUS_DEPT_SING= "BUS_DEPT_WAIT_SING";

    /**
     * 待跟进
     */
    public static final String BUS_STATUS_WAIT_FOLLOW = "BUS_WAIT_FOLLOW";

    /**
     * 跟进中
     */
    public static final String BUS_STATUS_FOLLOWING = "BUS_FOLLOWING";

    /**
     * 上门跟进中
     */
    public static final String BUS_STATUS_DOOR_FOLLOWING = "BUS_DOOR_FOLLOWING";


    /**
     * 电销掉库
     */
    public static final String BUS_STATUS_DP_DROP = "BUS_DP_DROP";
    /**
     * 已签单
     */
    public static final String BUS_STATUS_SIGNED = "BUS_SIGNED";

    /**
     * 已成单
     */
    public static final String BUS_STATUS_ORDER_SUCCESSED = "BUS_SUCCESED";

    /**
     * 已退单
     */
    public static final String BUS_STATUS_ORDER_BACK = "BUS_ORDER_BACK";

    /* ============= 商机状态相关常量 end ============= */

    /* ============= 商机类型相关常量 ============= */
    /**
     * 公司商机
     */
    public static final String BUS_OPP_1 = "BUS_OPP_1";

    /**
     * 二次开发
     */
    public static final String BUS_OPP_2 = "BUS_OPP_2";

    /**
     * 自开发
     */
    public static final String BUS_OPP_3 = "BUS_OPP_3";

    /**
     * 事业部拾回
     */
    public static final String BUS_OPP_4 = "BUS_OPP_4";
    /**
     * 转介绍
     */
    public static final String BUS_OPP_5 = "BUS_OPP_5";


    /* ============= 商机类型相关常量 end ============= */

   /* ============= 商机获取方式相关常量 ============= */
    /**
     * 分配
     */
    public static final String BUS_WAY_CODE_1 = "BUS_WAY_CODE_1";

    /**
     * 自主开发
     */
    public static final String BUS_WAY_CODE_2 = "BUS_WAY_CODE_2";

    /**
     * 移交
     */
    public static final String BUS_WAY_CODE_3 = "BUS_WAY_CODE_3";

    /**
     * 转介绍
     */
    public static final String BUS_WAY_CODE_4 = "BUS_WAY_CODE_4";


    /**
     * 流转分配
     */
    public static final String BUS_WAY_CODE_5 = "BUS_WAY_CODE_5";

    /**
     * 拾回(统一)
     */
    public static final String BUS_WAY_CODE_6 = "BUS_WAY_CODE_6";


    /**
     * 公海库拾回
     */
    public static final String BUS_WAY_CODE_7 = "BUS_WAY_CODE_7";


    /**
     * 公海库拾回
     */
    public static final String ORIGIN_TYPE_7 = "ORIGIN_TYPE_7";

    /* ============= 商机获取方式相关常量 end ============= */

   /* ============= 商机新增类型相关常量 ============= */
    /**
     * 网运
     */
    public static final String BUS_ADD_TYPE_CODE_1 = "BUS_ADD_TYPE_CODE_1";

    /**
     * 营运
     */
    public static final String BUS_ADD_TYPE_CODE_2 = "BUS_ADD_TYPE_CODE_2";

    /**
     * 呼叫中心
     */
    public static final String BUS_ADD_TYPE_CODE_3 = "BUS_ADD_TYPE_CODE_3";


    /**
     * 新媒体
     */
    public static final String BUS_ADD_TYPE_CODE_4 = "BUS_ADD_TYPE_CODE_4";

    /**
     * 自开发
     */
    public static final String BUS_ADD_TYPE_CODE_5 = "BUS_ADD_TYPE_CODE_5";

    /**
     * 客服回访
     */
    public static final String BUS_ADD_TYPE_CODE_6 = "BUS_ADD_TYPE_CODE_6";

    /**
     * 转介绍
     */
    public static final String BUS_ADD_TYPE_CODE_7 = "BUS_ADD_TYPE_CODE_7";

    /* ============= 商机新增类型相关常量 end ============= */

    /* ============= 商机进度相关常量 ============= */
    /**
     * 首电
     */
    public static final String BUS_NEXT_FOLLOW_STAGE_CODE_0 = "BUS_STAGE_0";
    /**
     * 咨询
     */
    public static final String BUS_NEXT_FOLLOW_STAGE_CODE_1 = "BUS_STAGE_1";
    /**
     * 犹豫
     */
    public static final String BUS_NEXT_FOLLOW_STAGE_CODE_2 = "BUS_STAGE_2";
    /**
     * 意向
     */
    public static final String BUS_NEXT_FOLLOW_STAGE_CODE_3 = "BUS_STAGE_3";
    /**
     * 客户上门
     */
    public static final String BUS_NEXT_FOLLOW_STAGE_CODE_4 = "BUS_STAGE_4";

    /**
     * 已签单
     */
    public static final String BUS_NEXT_FOLLOW_STAGE_CODE_5 = "BUS_STAGE_5";




    /**
     * 预约上门
     */
    public static final String BUS_NEXT_STAGE_CODE_0 = "BUS_NEXT_STAGE_0";


    //划分业绩
    public static final String REFERRAL_AWARD_WAY_HFYJ = "REFERRAL_AWARD_WAY_HFYJ";

    //划分业绩及红包
    public static final String REFERRAL_AWARD_WAY_FFTC = "REFERRAL_AWARD_WAY_FFTC";

    /* ============= 商机类型相关来源渠道方式常量 ============= */
    /**
     * 三类表单
     */
    public static final String BUS_ORIGIN_TYPE_1 = "ORIGIN_TYPE_1";
    /**
     * 1类表单
     */
    public static final String BUS_ORIGIN_TYPE_2= "ORIGIN_TYPE_2";

    /**
     * 大搜 5类
     */
    public static final String BUS_ORIGIN_TYPE_3= "ORIGIN_TYPE_3";
    /**
     * 2类表单
     */
    public static final String BUS_ORIGIN_TYPE_4 = "ORIGIN_TYPE_4";

    /**
     * 4类表单
     */
    public static final String BUS_ORIGIN_TYPE_5= "ORIGIN_TYPE_5";
    /**
     * 自开发
     */
    public static final String BUS_ORIGIN_TYPE_6 = "ORIGIN_TYPE_6";

    /**
     * 拾回
     */
    public static final String BUS_ORIGIN_TYPE_7 = "ORIGIN_TYPE_7";
    /**
     * 转介绍
     */
    public static final String BUS_ORIGIN_TYPE_8 = "ORIGIN_TYPE_8";

    /**
     * 平台和运营
     */
    public static final String BUS_ORIGIN_TYPE_9 = "ORIGIN_TYPE_9";

    /**
     * 平台和运营
     */
    public static final String BUS_ORIGIN_TYPE_10 = "ORIGIN_TYPE_10";

    /**
     * 网推2类
     */
    public static final String BUS_ORIGIN_TYPE_11 = "ORIGIN_TYPE_11";
    /**
     * 网推3类
     */
    public static final String BUS_ORIGIN_TYPE_12 = "ORIGIN_TYPE_12";
    /**
     * 网推4类
     */
    public static final String BUS_ORIGIN_TYPE_13 = "ORIGIN_TYPE_13";
    /**
     * 网推一类
     */
    public static final String BUS_ORIGIN_TYPE_14 = "ORIGIN_TYPE_14";
    /**
     * 其他
     */
    public static final String BUS_ORIGIN_TYPE_0 = "ORIGIN_TYPE_0";

    /**商机判重规则**/
   // 分公司、事业部、全集团
    public static final String BUS_REPEAT_0 = "0"; //全集团

    public static final String BUS_REPEAT_1 = "1"; //分公司

    public static final String BUS_REPEAT_2 = "2"; //事业部





}
